package com.soushangxing.comfyuibackendv2.bean

/**
 * 一共返回三种状态，与chatto保持一致
 * 1. {code: 0, data: any, msg: ""} // code=0，表示请求成功，data为请求返回的数据
 * 2. {code: 1, data: null, msg: ""} // code=1，表示请求失败，msg为失败的消息
 * 3. {code: 2, data: null, msg: ""} // code=2，表示用户解析失败，前端需要重新登陆
 */
class ResponseType(var data: Any?, var code: Int = 0, var msg: String = ""){
  constructor(msg: String, code: Int = 1): this(null, code, msg)
}
